home *** CD-ROM | disk | FTP | other *** search
Wrap
GlobalMaster stack 1.0 by Frédéric RINALDI This stack contains two XCMDs which allow to easily purge all global variables created by the stack. They work only with HyperCard 2.0. SaveCurrentGlobals 1.0 DESCRIPTION SaveCurrentGlobals saves the list of current active globals. SYNTAX SaveCurrentGlobals PARAMETERS Using "!" and "?" as parameter will return an online help (resp. copyright and syntax). USING SaveCurrentGlobals must appear in the "on openStack" handler before any global variable setting. The XCMD creates a global named GlobalVarsList which will be used later by ClearStackGlobals XCMD. ERRORS If an error occurs, SaveCurrentGlobals can return : "Error : Out of Memory" ClearStackGlobals 1.0 DESCRIPTION ClearStackGlobals purges all global variables created since call to SaveStackGlobals. SYNTAX ClearStackGlobals PARAMETERS Using "!" and "?" as parameter will return an online help (resp. copyright and syntax). USING ClearStackGlobals will generally be located in the "on closeStack" handler. The XCMD uses the global variable GlobalVarsList created earlier by SaveCurrentGlobals to find globals that must be cleared. -------------------------------------------------------------------- All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : SaveCurrentGlobals & ClearStackGlobals XCMDs, © Frederic Rinaldi, 1989…1993. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111 Internet : RINALDI1@APPLELINK@APPLE.COM